package com.ruoyi.his.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.his.mapper.ReCityMapper;
import com.ruoyi.his.domain.ReCity;
import com.ruoyi.his.service.IReCityService;

/**
 * 市Service业务层处理
 *
 * @author Alan
 * @date 2024-03-09
 */
@Service
public class ReCityServiceImpl implements IReCityService
{
    @Autowired
    private ReCityMapper reCityMapper;

    /**
     * 查询市
     *
     * @param code 市主键
     * @return 市
     */
    @Override
    public ReCity selectReCityByCode(String code)
    {
        return reCityMapper.selectReCityByCode(code);
    }

    /**
     * 查询市列表
     *
     * @param reCity 市
     * @return 市
     */
    @Override
    public List<ReCity> selectReCityList(ReCity reCity)
    {
        return reCityMapper.selectReCityList(reCity);
    }

    /**
     * 新增市
     *
     * @param reCity 市
     * @return 结果
     */
    @Override
    public int insertReCity(ReCity reCity)
    {
        return reCityMapper.insertReCity(reCity);
    }

    /**
     * 修改市
     *
     * @param reCity 市
     * @return 结果
     */
    @Override
    public int updateReCity(ReCity reCity)
    {
        return reCityMapper.updateReCity(reCity);
    }

    /**
     * 批量删除市
     *
     * @param codes 需要删除的市主键
     * @return 结果
     */
    @Override
    public int deleteReCityByCodes(String[] codes)
    {
        return reCityMapper.deleteReCityByCodes(codes);
    }

    /**
     * 删除市信息
     *
     * @param code 市主键
     * @return 结果
     */
    @Override
    public int deleteReCityByCode(String code)
    {
        return reCityMapper.deleteReCityByCode(code);
    }
}
